let St,Se,Sn,So,Si,Sa=null,Ss=65,Sc=new Set;const r=1111;function d(St){So=performance.now();const Se=St.target.closest("a");Fm(Se)&&p(Se.href,"high")}function u(St){if(performance.now()-So{p(Se.href,"high"),Si=void 0},Ss))}function l(St){const Se=St.target.closest("a");Fm(Se)&&p(Se.href,"high")}function f(St){St.relatedTarget&&St.target.closest("a")==St.relatedTarget.closest("a")||Si&&(clearTimeout(Si),Si=void 0)}function h(St){if(performance.now()-So1||St.metaKey||St.ctrlKey)return;if(!Se)return;Se.addEventListener("click",function(St){1337!=St.detail&&St.preventDefault()},{capture:!0,passive:!1,once:!0});const Sn=new MouseEvent("click",{view:window,bubbles:!0,cancelable:!1,detail:1337});Se.dispatchEvent(Sn)}function Fm(So){if(So&&So.href&&(!Sn||"instant"in So.dataset)){if(So.origin!=location.origin){if(!(Se||"instant"in So.dataset)||!Sa)return}if(["http:","https:"].includes(So.protocol)&&("http:"!=So.protocol||"https:"!=location.protocol)&&(St||!So.search||"instant"in So.dataset)&&!(So.hash&&So.pathname+So.search==location.pathname+location.search||"noInstant"in So.dataset))return!0}}function p(St,Se="auto"){if(Sc.has(St))return;const Sn=document.createElement("link");Sn.rel="prefetch",Sn.href=St,Sn.fetchPriority=Se,Sn.as="document",document.head.appendChild(Sn),Sc.add(St)}!function(){if(!document.createElement("link").relList.supports("prefetch"))return;const So="instantVaryAccept"in document.body.dataset||"Shopify"in window,Si=navigator.userAgent.indexOf("Chrome/");Si>-1&&(Sa=parseInt(navigator.userAgent.substring(Si+"Chrome/".length)));if(So&&Sa&&Sa<110)return;const Sc="instantMousedownShortcut"in document.body.dataset;St="instantAllowQueryString"in document.body.dataset,Se="instantAllowExternalLinks"in document.body.dataset,Sn="instantWhitelist"in document.body.dataset;const r={capture:!0,passive:!0};let f=!1,v=!1,g=!1;if("instantIntensity"in document.body.dataset){const St=document.body.dataset.instantIntensity;if(St.startsWith("mousedown"))f=!0,"mousedown-only"==St&&(v=!0);else if(St.startsWith("viewport")){const Se=navigator.connection&&navigator.connection.saveData,Sn=navigator.connection&&navigator.connection.effectiveType&&navigator.connection.effectiveType.includes("2g");Se||Sn||("viewport"==St?document.documentElement.clientWidth*document.documentElement.clientHeight<45e4&&(g=!0):"viewport-all"==St&&(g=!0))}else{const Se=parseInt(St);isNaN(Se)||(Ss=Se)}}v||document.addEventListener("touchstart",d,r);f?Sc||document.addEventListener("mousedown",l,r):document.addEventListener("mouseover",u,r);Sc&&document.addEventListener("mousedown",h,r);if(g){let St=window.requestIdleCallback;St||(St=(St=>{St()})),St(function(){const St=new IntersectionObserver(Se=>{Se.forEach(Se=>{if(Se.isIntersecting){const Sn=Se.target;St.unobserve(Sn),p(Sn.href)}})});document.querySelectorAll("a").forEach(Se=>{Fm(Se)&&St.observe(Se)})},{timeout:1500})}}();